<script setup lang="ts">
import { onMounted } from "vue";
// import request from '@/utils/request.ts';
import { reqLogin } from "./api/user";

onMounted(() => {
  // request({
  //   url: '/user/login',
  //   method: 'post',
  //   data: {
  //     username: 'admin',
  //     password: '111111'
  //   }
  // }).then(res=>{
  //   console.log(res)
  // })
  reqLogin({ username: "admin", password: "111111" }).then((res) => {
    console.log("请求结果csl", res);
  });
});
</script>

<template>
  <div>
    <i>测试全局变量</i>
    <el-button type="primary" size="default">按钮</el-button>
    <svg-icon name="copyright"></svg-icon>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
</template>

<style scoped lang="scss">
i {
  color: $base-color;
}
</style>
